package com.example.springboottimetask.services;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
public class TimeTaskServices {

    @Scheduled(cron ="0 32 15 * * *" )   //cron表达式
    public void hello(){
        System.out.println("hello timeTask!");
    }
}
